// 云函数入口文件
const create = require('./create/index')
const update = require('./update/index')
const remove = require('./remove/index')
const query = require('./query/index')

// 云函数入口函数
exports.main = async (event, context) => {
  switch(event.methodName) {
      case 'create':
        return await create.main(event, context);
      case 'update': 
        return await update.main(event, context);
      case 'remove':
        return await remove.main(event, context);
      case 'query':
        return await query.main(event, context);      
  }
}